package com.xqboss.apps.dto.user;

import com.xqboss.apps.dto.PageDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel
public class OpenBoxDto {

    @ApiModelProperty("用户箱子Id")
    @NotNull(message = "请输入箱子ID")
    private Long userBoxId;

    @ApiModelProperty("开启数量")
    @Min(value = 1, message = "至少开启一个箱子")
    @Max(value = 10, message = "一次性最多开箱10个")
    private Integer quantity;

    @ApiModelProperty("消耗热豆数量")
    private BigDecimal useInteger;

    @ApiModelProperty("支付密码")
    @NotNull(message = "请输入支付密码")
    private String payPassword;
}
